# name : Rmd beamer head
# key : rmd.beamer.head
# contributor: Shuguang
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# --
---
title: "${1:title}"
author: "Shuguang Sun"
date: "\`r Sys.Date()\`"
output:
  beamer_presentation:
    latex_engine: xelatex
    keep_tex: true
    slide_level: 2
    theme: "AnnArbor"
    colortheme: "dolphin"
    fonttheme: "structurebold"
---

\`\`\`{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## other setup, for example, libraries
\`\`\`

$0
# In the morning

## Getting up

- Turn off alarm
- Get out of bed

## Breakfast

- Eat eggs
- Drink coffee

# In the evening

## Dinner

- Eat spaghetti
- Drink wine

---

```{r, cars, fig.cap="A scatterplot.", echo=FALSE}
plot(cars)
```

## Going to sleep

- Get in bed
- Count sheep

---

:::::: {.columns}
::: {.column width="40%"}
Content of the left column.
:::

::: {.column width="60%"}
Content of the right column.
:::
::::::